-- GENERATED SPELL FOR [Takk the Leaper] --


function spell0_5842(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(6178,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5842', 0, 1)
end

function Sorts_5842(pUnit, Event)
local choix_sorts_5842 = math.random(0, 0)
if choix_sorts_5842 == 0 then
pUnit:RegisterEvent('spell0_5842', 1, 1)
end
end

function mob5842_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5842', math.random(1500, 3000), 1)
end

function mob5842_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5842_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5842_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5842, 1, 'mob5842_Action')
RegisterUnitEvent(5842, 2, 'mob5842_Leave')
RegisterUnitEvent(5842, 3, 'mob5842_Kill')
RegisterUnitEvent(5842, 4, 'mob5842_Die')
